
#define M 50
int main()
{
    int a[M], c[5] = {0}, i, n = 0, x;
    scanf("%d", &x);
    while (x != -1)
    {
        a[n] = x;
        x++;
        scanf("%d", &x);
    }
    for (i = 0; i < n; i++)
    {
        c[a[i]]++;
    }
    for (i = 0; i < 5; i++)
    {
        printf("%d:%d\n", i, c[i]);
    }
    return 0;
}